FROM amazoncorretto:1.0
MAINTAINER killko <ydhana@isoftstone.com>
ENV PREFERRED_IP_PATTERN=.*
ENV EUREKA_SERVICEURL=http://127.0.0.1:6080/eureka
ENV CONFIG_PROFILE=dev
ENV LOGFILE_DIR=/applog
ENV LOG_LEVEL=info
ENV _JAVA_OPTIONS="-Xms512m -Xmx512m"
#ENV REDIS_CONNECT_ADDRESS=127.0.0.1
#ENV MYSQL_CONNECT_ADDRESS=127.0.0.1
#Ports
EXPOSE 8081


COPY oauth2_service*.jar /oauth2_service.jar

ENTRYPOINT ["java","-jar", "-Djava.net.preferIPv4Stack=true", "/oauth2_service.jar"]
